package com.zhiyou100.servicrImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.mapper.items.ItemsMapper;
import com.zhiyou100.model.ChargeManager;
import com.zhiyou100.service.ItemsService;
@Service
public class ItemsServiceImpl implements ItemsService{
	@Autowired
	private ItemsMapper mapper;
	// 查询
	@Override
	public List<ChargeManager> findAll(Map<String, Object> map) {
		List<ChargeManager> lists = mapper.findAll(map);
		return lists;
	}
	// 查询 添加
	@Override
	public ChargeManager findToAdd(int medical_record) {
		ChargeManager charge = mapper.findToAdd(medical_record);
		return charge;
	}
	@Override
	public void addCharge(ChargeManager charge) {
		mapper.addCharge(charge);
		
	}
	// 添加
	@Override
	public void addCharge2(ChargeManager charge) {
		mapper.addCharge2(charge);
		
	}

}
